package org.mozhu.mboot.admin.maintain.email.service;

import java.util.List;
import java.util.Map;

import org.mozhu.mboot.admin.maintain.email.entity.EmailNotification;
import org.mozhu.mboot.core.data.IBaseService;

/**
 * 邮件通知 - 业务层接口
 * 
 * @author ZhangPei
 */
public interface EmailNotificationService extends IBaseService<EmailNotification, Long> {

	List<EmailNotification> findPendingEmailNotifications();

	void sendEmailNotification(EmailNotification emailNotification);
	
	void sendByTemplate(String templateCode, String email, Map<String, Object> modal, boolean async);
}
